package com.woniu40.petai_manager.mapper;

import com.woniu40.petai_manager.entity.Article;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface ArticleMapper {
    int deleteByPrimaryKey(Integer articleId);

    int insert(Article record);

    Article selectByPrimaryKey(Integer articleId);

    List<Article> selectAll();

    List<Article> selectRegexpArticle(String articleTitle);

    int updateByPrimaryKey(Article record);

    int updateOnQuill(@Param("articleId")Integer articleId , @Param("articleTitle") String articleTitle, @Param("managerId") Integer managerId ,@Param("artTypeId") Integer artTypeId,@Param("articleLabel")String articleLabel,@Param("articleContent")String articleContent,@Param("articleStatus")Integer articleStatus);

}